#pragma once

#include "DD_ImagePro.h"
#include "DDErrorDefine.h"

#pragma   warning   (disable:4146)
#import "msado15.dll" rename_namespace("AdoNS") rename( "EOF", "adoEOF" )
using namespace AdoNS;

class DDReportDataBase
{
public:
	DDReportDataBase(void);
	~DDReportDataBase(void);

public:
	int OpenDataBase();
	int SetImgInfo(TCHAR *pImgTitle,zkImgFileTail *pFileTail,zkImgCapParam *pImgCapParam,zkImgAssParam *pImgAssParam);
	void CloseDataBase();

private:
	int CreateDataBase();

public:
	TCHAR m_szDataBaseFile[MAX_PATH];
	int m_nImgCount;


private:
	_ConnectionPtr	m_pConnection; 
	_RecordsetPtr   m_pRecordset;

};
